Method
Namespace: Ignis
Declared in: Ignis.IComponentCollection<T>
Iterates over each 'entity ID'-'component' pair using the supplied callback. Passes an additional parameter to the callback which can be used to avoid heap allocations by passing the required variables through it. Components can be added and removed inside the callback.
public void ForEach<TState>(
Action<int, T, TState> action,
TState state
)
action
Callback to be called on each pair
state
Additional parameter for the callback